import request from '@/utils/request'

export const getPartnerList = (params) => {
  return request({
    method: 'get',
    url: '/api/user-service/partner/search',
    params
  })
}

export const deletePartner = (id) => {
  return request({
    method: 'DELETE',
    url: '/api/user-service/partner/' + id
  })
}

export const partnerAdd = (data) => {
  return request({
    method: 'POST',
    url: '/api/user-service/partner',
    data
  })
}

export const partnerEdit = (data, id) => {
  return request({
    method: 'PUT',
    url: '/api/user-service/partner/' + id,
    data
  })
}

export const resetPassword = (id) => {
  return request({
    method: 'put',
    url: '/api/user-service/partner/resetPwd/' + id
  })
}
